<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WIKINDX CLASS DOCUMENTATION</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2>WIKINDX METHODS</h2>
<p><strong>Method:</strong><br />
  
  grabAll()
</p>
<p><strong>Class:</strong><br />

  <a href="groupClass.html">GROUP</a>
<p><strong>Method Call:</strong><br />
  include_once("core/group/GROUP.php");<br />
$group = new GROUP($this-&gt;db);<br />
ASSOC. ARRAY $group->grabAll(); </p>
<p><strong>Description:</strong><br />
  Returns an associative array of all the groups in the WIKINDX database ordered by group name. 
<p><strong>Usage:</strong><br />
<pre>
	include_once("core/group/GROUP.php");
	$group = new GROUP($this-&gt;db);
	$groupArray = $group-&gt;grabAll();
	$groupArray will be something like:

	array(
			'1'		=>		'General',
			'3'		=>		'Mediaeval Art',
			'7'		=>		'Modern Art',
			'2'		=>		'Renaissance Art',
		);
</pre>
The <em>General</em> group always exists and always has an ID of '1'. The keys of the arrays are the ID numbers in the database table <em>WKX_group </em>and are the IDs that are inserted as a comma-delimited list in the <em>groups</em> field of <em>WKX_resource_group</em> for resources that are members of that group(s). 
<p align="right"><a href="../../index.html">WIKINDX home</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../../usage/index.html">WIKINDX usage</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../index.html">WIKINDX classes</a>
</p>
</body>

</html>
